package com.wn.controller;

import com.wn.entity.RbacPerm;
import com.wn.service.RbacPermService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/rbacPerm")
public class RbacPermController {
    @Autowired(required = false)
    RbacPermService rbacPermservice;
    @GetMapping("/findOne/{id}")
    public RbacPerm findOne(@PathVariable int id){
        return rbacPermservice.findOne(id);
    }
}
